package com.jsjosem.aftersales.request;

import androidx.core.util.Consumer;

import com.jsjosem.aftersales.api.VerifyCodeApi;
import com.jsjosem.aftersales.data.response.BaseResponse;

import retrofit2.Call;

public class VerifyCodeRequest extends AsyncRequest<BaseResponse<Void>> {

    public void send(String phone, Consumer<BaseResponse<Void>> success, Consumer<? super Object> failed) {
        VerifyCodeApi request = retrofit.create(VerifyCodeApi.class);
        Call<BaseResponse<Void>> call = request.send(phone);
        sendRequest(call, success, failed);
    }

}
